Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

190
Visualizações
How to block a "Post" in the console

I'm trying to develop this website where I sign up to firebase. Everything is working but I'm getting this post in my console that looks a lot like a error message but is not really one.

The Post im trying to remove/block

I want to block this "post" from getting out into the console, but just cant get it right. I know where it is getting posted from, but I can't catch it as it is not an error. I have also tried the function which stops all errors from getting posted and it acts like nothing is there.

 <script type="text/javascript">
window.onerror = function(message, url, lineNumber) {
 
    return true; // prevents browser error messages
};

I am aware there is also the console.clear(); but that clears the some other stuff I want to be printed out (console.log stuff).

    signInWithEmailAndPassword(email, password){
    return firebase.auth().signInWithEmailAndPassword(email, password)
        .then((userCredential) => {
            var user = userCredential.user;
 
        }).then(response=> response.status === 200 ? response :
            doThrow(new Error("Status was: " + response.statusText + " " + response.status)))
        .then(response => {response.json(); console.log(response.status)
        }).catch((error) => {
            this.errorCode = error.code;
            this.errorMessage = error.message;
        });
    }
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda